package com.isunland.managesystem.ui;

import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.Fragment;

public class RequisitionListActivity extends SingleFragmentActivity {
  private CheckListFragment fragment;

  //    private CustomerDialog extraContent;
  @Override protected Fragment createFragment() {
    fragment = new CheckListFragment();
    //        extraContent= (CustomerDialog) getIntent().getSerializableExtra(CheckListFragment.EXTRA_VALUE);
    //		return  CheckListFragment.newInstance(extraContent);
    return fragment;
  }

  @Override protected void onActivityResult(int arg0, int arg1, Intent arg2) {

    if (arg1 != Activity.RESULT_OK) {
      return;
    }
    if (arg0 == RequisitionChooseDialogFragment.REQUEST_ADD) {

      fragment.volleyPost();
    }
    super.onActivityResult(arg0, arg1, arg2);
  }
}
